using System;

namespace Voodoo.Sauce.Privacy
{
	[Serializable]
	public class ConsentInsightsParams
	{
		public string bundle_id;

		public string user;

		public string popup_version;

		public bool ads_consent;

		public bool analytics_consent;

		public string os_type;

		public string app_version;

		public string vs_version;

		public string locale;

		public string uuid;

		public string studio_name;

		public int gdpr_type;

		public string vendor_id;

		public string voodoo_user_id;

		public string idfa_authorization_status;

		public override string ToString()
		{
			string text = $"?bundle_id={bundle_id}&ads_consent={ads_consent}&analytics_consent={analytics_consent}&locale={locale}&uuid={uuid}";
			if (!string.IsNullOrEmpty(user))
			{
				text = text + "&user=" + user;
			}
			if (!string.IsNullOrEmpty(popup_version))
			{
				text = text + "&popup_version=" + popup_version;
			}
			if (!string.IsNullOrEmpty(os_type))
			{
				text = text + "&os_type=" + os_type;
			}
			if (!string.IsNullOrEmpty(app_version))
			{
				text = text + "&app_version=" + app_version;
			}
			if (!string.IsNullOrEmpty(vs_version))
			{
				text = text + "&vs_version=" + vs_version;
			}
			if (!string.IsNullOrEmpty(studio_name))
			{
				text = text + "&studio_name=" + studio_name;
			}
			if (!string.IsNullOrEmpty(vendor_id))
			{
				text = text + "&vendor_id=" + vendor_id;
			}
			if (!string.IsNullOrEmpty(voodoo_user_id))
			{
				text = text + "&voodoo_user_id=" + voodoo_user_id;
			}
			if (!string.IsNullOrEmpty(idfa_authorization_status))
			{
				text = text + "&idfa_authorization_status=" + idfa_authorization_status;
			}
			return text;
		}
	}
}
